package com.study

fun main(){
    val a=10
    var re= when(a)
    {
        1->"我是1"
        2->"我是2"
        else -> {
            println("这里是else")
        }
    }
    println(re)
}